package com.iting.transcationdemo.dao;


import com.iting.transcationdemo.bean.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2021/11/13
 */
public interface UserDao {
    int add(User user) throws SQLException;
    int delete(int id) throws SQLException;
    int update(User user) throws SQLException;
    int update(int id,int age) throws SQLException;
    List<User> select() throws SQLException;
}
